import request from '@/utils/request'

export const loginApi = (data) => {
  // return request.post('http://localhost:8888/api/sys/login', { data })
  return request({
    url: '/sys/login',
    method: 'POST',
    data: data
  })
}

// 获取用户信息
export const getUserInfoApi = () => {
  return request.post('/sys/profile')
}

// 获取员工的基本信息
export const getBaseUserInfoApi = (id) => {
  return request.get(`/sys/user/${id}`)
}
